package com.feature.shop.user.converter;

import java.util.List;

import org.mapstruct.Mapper;
import com.feature.core.config.MapstructTypeConvert;

import com.feature.shop.user.api.request.ShopRoleAuthListRequest;
import com.feature.shop.user.api.request.ShopRoleAuthPageRequest;
import com.feature.shop.user.api.vo.ShopRoleAuthVo;
import com.feature.shop.user.model.query.ShopRoleAuthQuery;
import com.feature.shop.user.model.entity.ShopRoleAuthEntity;

/***
 * 用户角色权限表Converter
 */
@Mapper(uses = MapstructTypeConvert.class)
public interface ShopRoleAuthConverter {

    ShopRoleAuthVo entityToVO(ShopRoleAuthEntity entity);

    List<ShopRoleAuthVo> entityListToVO(List<ShopRoleAuthEntity> list);

    ShopRoleAuthQuery pageRequestToQuery(ShopRoleAuthPageRequest request);

    ShopRoleAuthQuery listRequestToQuery(ShopRoleAuthListRequest request);

}
